export default (prevState = 0, state) => {
  switch (state.type) {
    case 'increase':
      return prevState + state.data;
    case 'decrease':
      return prevState - state.data;
    default:
      return prevState;
  }
};
